<?php
/*
 * 制作饮料类
 * @author    Leo
 * @filename Beverage.php
 * @Created  2015/10/6 1:10
 */

abstract class MakeBeverage{

	public function create(){
		$this->boilWater();
		$this->brew();
		$this->pourInCup();
		$this->addCondiments();
	}

	/**
	 * 煮开水
	 * @return mixed
	 */
	abstract protected function  boilWater();

	/**
	 * 冲泡饮料
	 * @return mixed
	 */
	abstract protected function brew();

	/**
	 * 把饮料倒进杯子
	 * @return mixed
	 */
	abstract protected function pourInCup();

	/**
	 * 加调料
	 * @return mixed
	 */
	abstract protected function addCondiments();

}